package old.day05;

public class ArrayDemo {
    public static void main(String[] args) {
        int[] arr=new int[10];
        for (int i=0;i<arr.length;i++){
            arr[i]=(int) (Math.random()*100);
            System.out.println(arr[i]);
        }
        int[] a1=new  int[10];
        for (int i=a1.length-1;i>=0;i--){
            arr[i]=(int) (Math.random()*100);
            System.out.println(arr[i]);
        }




















        /*
        int[] arr=new int[4];
        System.out.println(arr.length);
        arr[0]=100;
        arr[1]=200;
        arr[2]=300;
        arr[3]=400;
        System.out.println(arr[arr.length-1]);

         */




















        /*
        int[] a1=new int[5];
        int[] a2=new int[]{2,3,4};
        int[] a3;
        a3=new int[]{1,2,3,};
        int[] a4=new int[10];
        int[] a5={1,3,4};
        int[] a6={1,32,5};
        int[] a7=new int[10];
        a7=new int[]{1,2,3,2,2};
        int[] a8={1,2,3,4,5};
        int[] a9=new int[]{1,32,3,5,6,7};
        System.out.println(a1.length);

         */


    }
}
